package methods;

public class attributes {
    public int x;

    public static void main(String[] args){
        attributes myobj=new attributes();

        int y=40;
        myobj.x=y;
        System.out.println(myobj.x);
    }
}

/*
输出：40

 */
